<!doctype html>
<title>Display HTML text</title>

<p id="output"></p>

<script>

var output = document.querySelector("#output");
output.innerHTML = "Hello World!";

</script>